<extend name="Public/base" />
	<block name='body'>
		<section class="content">
            <div class="row">
                <div class="col-sm-12">
                    <div class="box">
                        <div class="box-header">
                            <h3 class="box-title">增加分类</h3>
                        </div>
                        <!-- /.box-header -->
                        <form action="{:U('Exam/addcourse')}" method="post" class="form-horizontal" id="category_form">
                        <div class="box-body">     
                          
                             <div class="form-item cf">
                                <label class="item-label">上级分类<span class="check-tips">（选择上级分类）</span></label>
                                <div class="controls fl">
                                   <select name='parent_id_1' id="parent_id_1" onchange="javascript:get_category(this.value , 'parent_id_2' , 0 );">
                                   </select>
                                   <select name='parent_id_2' id="parent_id_2" onchange="javascript:get_goods_by_cat(this.value , 'parent_id_3' , 0 );">
                                        <option value="0">请选择课程</option>
                                   </select>
                                   <select name='parent_id_3' id="parent_id_3" onchange="javascript:get_cover_by_class(this.value , 'parent_id_4' , 0 );">
                                      <option value="0">请选择班级</option>
                                   </select>
                                   <select name='parent_id_4' id="parent_id_4" ">
                                      <option value="0">顶级目录</option>
                                   </select>
                                </div>
                            </div>
                            <div class="form-item">
                                <label class="form-label">填写名称:</label>
                                <div class="form-controls">
                                    <input type="text" name="title" class='text input-large'>   
                                </div>
                            </div>
                            <div style="margin-top: 10px;">.
                                <button type="submit" class="btn submit-btn ajax-post" target-form="form-horizontal">确 定</button>
                                <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </section>
	</block>
    <block name="script">
        <script type="text/javascript" src="__STATIC__/script.js"></script>
        <script type="text/javascript">
            highlight_subnav('{:U('Exam/course')}');
             get_category(0 , 'parent_id_1', '0' );
        </script>
    </block>
</block>